from langchain_openai import ChatOpenAI
from langchain_core.messages import (
    HumanMessage,
    SystemMessage,
    AIMessage
)

chat = ChatOpenAI(temperature = 0)
result = chat.invoke([
    HumanMessage(
        content=(
            "Translate this sentence from English to French. "
            "I love programming."
        )
    )
])
print(result)


